﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class EntityBase
    {
        public EntityBase() {
            this.ID = Guid.NewGuid();
            this.Islock = false;
            this.IsDelete = false;
            
        }
        [Column("P01")]
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid ID { get; set; }
        ///是否被锁定
        [Column("P02")]
        public Boolean Islock { get; set; }
        ///是否删除
        [Column("P03")]
        public bool IsDelete { get; set; }
        ///创建时间
        
    }
}
